package com.sikaryofficial.backend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sikaryofficial.backend.domain.dto.resp.productactivity.ActivityReserveDTO;
import com.sikaryofficial.backend.domain.entity.ActivityReserve;

import java.util.List;
import java.util.Map;

/**
 * 活动预约Service接口
 *
 * @author qinjinyuan
 * @date 2023-11-02
 */
public interface IActivityReserveService extends IService<ActivityReserve> {

    /**
     * 查询活动预约状态
     *
     * @param activityIds 活动id
     * @param userId      用户ID
     * @return
     */
    Map<Long,Integer> getReserveStatus(List<Long> activityIds, Long userId);

    /**
     * 查询活动预约列表
     *
     * @param userId
     * @param reserveStatus
     * @return
     */
    IPage<ActivityReserveDTO> reserveList(Page<ActivityReserveDTO> customerPage, Long userId, Integer reserveStatus);

    /**
     * 查询活动获奖列表
     *
     * @param userId
     * @return
     */
    IPage<ActivityReserveDTO> awardsList(Page<ActivityReserveDTO> customerPage, Long userId);

    /**
     * 根据活动ID，获取预约数量
     * @param activityIds
     * @return
     */
    Map<Long,Integer> getReserveCountList(List<Long> activityIds);
}
